/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved. distributed with this file and
 * available online at
 */
package com.lap.auth.application.job.command;

import org.hibernate.validator.constraints.Length;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@Schema(description = "创建岗位命令")
public class CreateJobCmd {

  @Schema(description = "编码")
  private String code;

  @NotBlank(message = "{job.name.required}")
  @Length(max = 32, message = "{job.name.max.length}")
  @Schema(description = "名称")
  private String name;

  @Length(max = 64, message = "{job.remark.max.length}")
  @Schema(description = "备注")
  private String remark;
}
